using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsSchedulematTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Schedulemat"; 

		public const string C_SCHEDULEMATID = "SCHEDULEMATID";
		public const string C_SCHEDULEDETAILID = "SCHEDULEDETAILID";
		public const string C_BOMDETAILID = "BOMDETAILID";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_TOTALNUM = "TOTALNUM";
		public const string C_TOTALWEIGHT = "TOTALWEIGHT";
		public const string C_EXPECTARRIVEDATE = "EXPECTARRIVEDATE";
		public const string C_ACTULARRIVEDATE = "ACTULARRIVEDATE";
		public const string C_ACTULSENDDATE = "ACTULSENDDATE";
		public const string C_ACTULSENDNUM = "ACTULSENDNUM";
				
		public BsSchedulematTable()
		{
			_tableName ="Bs_Schedulemat";
		}

		protected static BsSchedulematTable _current;

		public static BsSchedulematTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsSchedulematTable();

			_current.Add(C_SCHEDULEMATID, new ColumnInfo(C_SCHEDULEMATID, "", true, typeof(Decimal?)));
			_current.Add(C_SCHEDULEDETAILID, new ColumnInfo(C_SCHEDULEDETAILID, "", false, typeof(Decimal?)));
			_current.Add(C_BOMDETAILID, new ColumnInfo(C_BOMDETAILID, "", false, typeof(Decimal?)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_TOTALNUM, new ColumnInfo(C_TOTALNUM, "", false, typeof(Decimal?)));
			_current.Add(C_TOTALWEIGHT, new ColumnInfo(C_TOTALWEIGHT, "", false, typeof(Decimal?)));
			_current.Add(C_EXPECTARRIVEDATE, new ColumnInfo(C_EXPECTARRIVEDATE, "", false, typeof(DateTime?)));
			_current.Add(C_ACTULARRIVEDATE, new ColumnInfo(C_ACTULARRIVEDATE, "", false, typeof(DateTime?)));
			_current.Add(C_ACTULSENDDATE, new ColumnInfo(C_ACTULSENDDATE, "", false, typeof(DateTime?)));
			_current.Add(C_ACTULSENDNUM, new ColumnInfo(C_ACTULSENDNUM, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo SCHEDULEMATID
		{
			get { return this[C_SCHEDULEMATID];}
		}

		public ColumnInfo SCHEDULEDETAILID
		{
			get { return this[C_SCHEDULEDETAILID];}
		}

		public ColumnInfo BOMDETAILID
		{
			get { return this[C_BOMDETAILID];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo TOTALNUM
		{
			get { return this[C_TOTALNUM];}
		}

		public ColumnInfo TOTALWEIGHT
		{
			get { return this[C_TOTALWEIGHT];}
		}

		public ColumnInfo EXPECTARRIVEDATE
		{
			get { return this[C_EXPECTARRIVEDATE];}
		}

		public ColumnInfo ACTULARRIVEDATE
		{
			get { return this[C_ACTULARRIVEDATE];}
		}

		public ColumnInfo ACTULSENDDATE
		{
			get { return this[C_ACTULSENDDATE];}
		}

		public ColumnInfo ACTULSENDNUM
		{
			get { return this[C_ACTULSENDNUM];}
		}

		
	}
}


